<template>
  <div id="app">
    <!-- 404页面 -->
    <p>Not Found 404</p>
    <van-button type="primary" @click="btnClick">返回首页</van-button>
  </div>
</template>

<script>
export default {
  name: "notfound",
  methods: {
    btnClick() {
      this.$router.push({ path: "/home" });
    },
  },
};
</script>

<style>
#app {
  text-align: center;
  width: 100px;
  margin: 100px auto;
}
p {
  margin-bottom: 20px;
  color: red;
}
</style>